package StringOperation;
//344. 反转字符串
public class basic344 {
    public void reverseString(char[] s) {
        int length = s.length;
        for (int i = 0; i < length / 2; i++) {
            char  temp=s[i];
            s[i]=s[length-1-i];
            s[length-1-i]=temp;
        }
    }

    public static void main(String[] args) {

    }
}
